package org.apache.spark.examples.es;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.streaming.Seconds;
import org.apache.spark.streaming.api.java.JavaStreamingContext;

/**
 * Created by admin on 2019/3/29.
 */
public class JavaEsSparkStream {
    public static void main(String[] args){
        System.setProperty("hadoop.home.dir", "C:/hadoop-2.6.0");
        SparkConf conf = new SparkConf().setAppName("JavaEsSparkStream").setMaster("local[1]");
        JavaSparkContext jsc = new JavaSparkContext(conf);
//        JavaStreamingContext jssc = new JavaSparkStreamingContext(jsc, Seconds.apply(1));

    }
}
